package com.onlyyou.cart.mapper;

import com.onlyyou.cart.entity.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 小野
 * @Date: 2020/1/15 9:35
 */
@Repository
@Mapper
public interface CartMapper {
    Integer rows();
    List<Cart> findAll(Integer page,Integer limit);

    List<Cart> findByUserId(Cart cart);

    Cart findById(Long id);
    void save(Cart cart);

    void update(Cart cart);

    void delete(Cart cart);
}
